<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<html>
<head>
<META http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title><s:text name="register.title"/></title>
<s:head/>
</head>
<body>
	<h2><s:text name="register.title" /></h2>
	<s:form action="saveUser">
		<s:textfield name="user.username" requiredLabel="true" key="register.label.userName" />
		<s:password name="user.password" requiredLabel="true" key="register.label.password" />
		<s:textfield name="user.email" requiredLabel="true" key="register.label.email" />
		<s:submit key="register.button"/>
	</s:form>
	<s:a action="listUser">
		<s:text name="register.label.listUser"/>
	</s:a>
	<table>
		<tr>
			<td><s:text name="register.label.userName"/></td>
			<td><s:text name="register.label.email"/></td>
			<td><s:text name="table.column.operate"/></td>
		</tr>
		<s:iterator value="userList">
			<tr>
				<td><s:property value="username" /></td>
				<td><s:property value="email" /></td>
				<td>
					<s:a action="deleteUser" >
						<s:text name="table.column.operate.delete" />
						<s:param name="id"><s:property value="id" /></s:param>
					</s:a>
				</td>
			</tr>
		</s:iterator>
	</table>
</body>
</html>
